$(document).on('click','.eshopuserinfo',function(){
	var type = $(this).attr('type');
	$.ajax({
		url:'/eshop/backEshop/backEshopUserInfoList.html',
		type:'get',
		dataType:'html',
		data:{
			"pageNo":1,
			"pageSize":1000,
			"type":type
		},
		success:function(data){
			$('.pageChange').html(data);
			$('.pageTitle').find('a').html($('.headerValue').val());
		}
	})
})

//修改联系状态
$(document).on('change','.backEshopUserInfoListSelect',function(){
	var status = $(this).find('option:checked').val();
	var eshopUserInfoId = $(this).attr('eshopUserInfoId');
	$.ajax({
		url:'/eshop/backEshop/changeBackInfoStatus.json',
		data:{
			'eshopUserInfoId':eshopUserInfoId,
			'status':status
		},
		dataType:'json',
		type:'post',
		success:function(data){
			if(data['code']==200){
				alert("修改状态成功！");
			}
		}
	})
})

//修改备注信息
$(document).on('click','.beizhuSub',function(){
	var remarks = $(this).parent().parent().find(".textareaBeizhu").html();
	var eshopUserInfoId = $(this).parent().parent().attr('eshopUserInfoId');
	$.ajax({
		url:'/eshop/backEshop/backEshopUserInfoRemarkModify.json',
		data:{
			'remarks':remarks,
			"eshopUserInfoId":eshopUserInfoId
		},
		dataType:'json',
		type:'post',
		success:function(data){
			if(data['code']==200){
				alert("修改备注成功！");
			}
		}
	})
	
})
//分页
//var tableHeight=$(".littleCr").height();
//alert(tableHeight);
//$(".littleCl").height(tableHeight);
//$(".littleCc").height(tableHeight);
 var pageCount=$(".pageCount").val();
    $(".tcdPageCode").createPage({
        pageCount:pageCount,
        current:$('.pageNo').val(),
        backFn:function(p){
//            var companyNameVar = $(".companyName").val();
//			if(companyNameVar!=null){
//				companyNameVar = encodeURI(encodeURI(companyNameVar));
//			}
        	window.location.href="/eshop/backEshop/xuqiuList.htm?pageNo="+p;
        }
    });